/**
 * @description:提交搜索
 * @return {*}
 * @param params
 * @param getDataList
 */
export const doPageQuery = (params, getDataList) => {
    params.size = 10;
    params.current = 1;
    getDataList();
};
/**
 * @description:重置
 * @return {*}
 * @param queryForm
 * @param params
 * @param getDataList
 */
export const doResetPageQuery = (queryForm, params, getDataList) => {
    queryForm.resetFields();
    doPageQuery(params, getDataList);
};
/**
 * @description:每页条数事件
 * @return {*}
 * @param val
 * @param params
 * @param getDataList
 */
export const doPageSizeChange = (val, params, getDataList) => {
    params.current = 1;
    params.size = val;
    getDataList();
};
/**
 * @description:改变页数事件
 * @return {*}
 * @param val
 * @param params
 * @param getDataList
 */
export const doPageCurrentChange = (val, params, getDataList) => {
    params.current = val;
    getDataList();
};
